package com.mhc.suzuki.service;

import com.mhc.suzuki.dal.model.CarInfoDO;
import com.mhc.suzuki.dal.model.LoanInfoDO;
import com.mhc.suzuki.vo.LoanInfoVO;

/**
 * 贷款信息业务类
 * Created by kanon on 2017/8/23.
 */
public interface LoanInfoService {

    /**
     * 根据订单号获取贷款信息
     *
     * @param orderNO
     * @return
     */
    LoanInfoVO getLoanInfo(String orderNO);

    /**
     * 新增或者修改贷款信息
     *
     * @param loanInfoDO
     * @return
     */
    Boolean addOrUpdateLoanInfo(LoanInfoDO loanInfoDO);

    /**
     * 新增或者修改贷款信息,车辆信息,请求垫资信息
     *
     * @param loanInfoDO
     * @param carInfoDO
     * @param staffId
     * @return
     */
    Boolean addOrUpdateLoanInfoAndCarInfo(LoanInfoDO loanInfoDO, CarInfoDO carInfoDO, Long staffId);

}
